﻿using com.guojin.core.io;
using com.guojin.core.io.message;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace com.guojin.mj.net.message.login
{
    public class OneClubInfo : Message
    {
        public static int TYPE = 7;
        public static int ID = 70;
        private int type;//谁的俱乐部 0自己， 1别人 2管理
        /***俱乐部头像地址*/
        private string address;
        /***俱乐部名称*/
        private string clubName;
        /***俱乐部编号*/
        private int clubId;
        /***俱乐部创建人姓名*/
        private string createName;
        /***俱乐部现有人数*/
        private int nowPeople;
        /***俱乐部总人数*/
        private int numPeople;
        /**俱乐部公告*/
        private string clubcontent;
        private bool money;
        public int Type
        {
            get
            {
                return type;
            }

            set
            {
                type = value;
            }
        }

        public string Address
        {
            get
            {
                return address;
            }

            set
            {
                address = value;
            }
        }

        public string ClubName
        {
            get
            {
                return clubName;
            }

            set
            {
                clubName = value;
            }
        }

        public int ClubId
        {
            get
            {
                return clubId;
            }

            set
            {
                clubId = value;
            }
        }

        public string CreateName
        {
            get
            {
                return createName;
            }

            set
            {
                createName = value;
            }
        }

        public int NowPeople
        {
            get
            {
                return nowPeople;
            }

            set
            {
                nowPeople = value;
            }
        }

        public int NumPeople
        {
            get
            {
                return numPeople;
            }

            set
            {
                numPeople = value;
            }
        }

        public string Clubcontent
        {
            get
            {
                return clubcontent;
            }

            set
            {
                clubcontent = value;
            }
        }

        public bool Money
        {
            get
            {
                return money;
            }

            set
            {
                money = value;
            }
        }

        public void decode(com.guojin.core.io.Input _in)
        {
        type =_in.readInt();
        address=_in.readString();
        clubName = _in.readString();
        clubId=_in.readInt();
        createName = _in.readString();
        nowPeople=_in.readInt();
        numPeople=_in.readInt();
        clubcontent= _in.readString();
        money = _in.readBoolean();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }

    }
}
